<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<div class="header">
    <div id="identity">
        <% java.util.GregorianCalendar gc = new java.util.GregorianCalendar();
        if(userProfile.getEmail() == null){
        %>
        Welcome!  <br />
        <span id="time"><%=gc.getTime().toString()%></span>
        <%}
        else{ %>
        Welcome! <span id="greeting"><%=userProfile.getEmail()%></span><br />
        <span id="time"><%=gc.getTime().toString()%></span><br>
        <form action="AutismSiteMasterController" method="get">
            <input type="text" size="20" name="title" />
            <input type="hidden" name="action" value="search events" />
            <input type="submit" name="submit" value="Search Events"><br />
            <a href="searchevents.jsp">Advanced Search</a>     
        </form>
        <%}%>
    </div>
    <h1 id="siteName"><img src="images/banner3.png" width="449" height="136" alt="Educate America! ...because it's right" /></h1>
    
    <div class="topNav"> 
        <a href="index.jsp">Home </a> |
        <a href="educationrights.jsp">Rights Education </a> | 
        <a href="news.jsp">Latest News </a> | 
        <a href="help.jsp">Help</a>  |
        <% if(userProfile.getEmail() == null){%>
        <a href="register.jsp">Register</a> |
        <a href="login.jsp">Login</a>
        <%}
        else{%>
        <a href="AutismSiteMasterController?action=logoff">Logout</a>
        <%}%>
        
    </div>  
</div>